<template>
  <div>
    <input type="text" v-model="name" placeholder="请输入账号">
    <input type="password" v-model="password" placeholder="请输入密码">
    <button @click="login">登录</button>
  </div>
</template>

<script>
export default {
  name:'myLogin',
  data(){
    return{
      name:'',
      password:""
    }
  },
  methods:{
    // login() {
    //   if (this.name === 'admin' && this.password === '666666') {
    //     console.log(111);
    //     localStorage.setItem('token-u', 'Token xxxx')
    //     this.$router.push('/')
    //   } else {
    //     localStorage.removeItem('token-u')
    //   }
    // }
  }
}
</script>

<style>

</style>